/**
 * 
 */
package com.hanhai.zrb.model.project.enums;

/**
 * @author leiruiqi@hanhai.com
 *
 */
public enum AssetTypeEnums {

	   //土地类型 房屋、土地、交通工具、股权 房屋、土地、交通工具、股权 
		HOME(601,"房屋"),
		LAND(602,"土地"),
		TRAFFIC(603,"交通"),
		EQUITY(604,"股权"),
		OTHER(605,"其他")
	;
	
	private Integer code;
	
	private String value;
	
	public Integer getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	private AssetTypeEnums(int code,String value){
		this.code = code;
		this.value = value;
	}
	
	public static String  getValueByCode(int code){
		for(AssetTypeEnums status:AssetTypeEnums.values()){
			if(status.getCode() == code){
				return status.getValue();
			}
		}
		return null;
	}
	
}
